<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>前端监控SDK</title>
</head>

<body>
    <div id="container">
        <div class="content">
            <input type="button" value="点击抛出错误" onclick="btnClick()" />
            <!-- <input type="button" value="点击抛出promise错误" onclick="btnPromiseClick()" /> -->
        </div>
    </div>
    <script>
        function btnClick(){
            window.someVariable.error = 'someVariable';
        }
    </script>
</body>
</html>